package com.test.util;

import java.util.Map;

import com.api.services.IZyncroApi;
import com.api.test.Api;

public class ZyncroUtil {

	private final Api serviceApi;

	public ZyncroUtil(Api serviceApi) {
		this.serviceApi = serviceApi;
	}

	public String getSessionUrn(String username, String password) {
		Map<String, String> result = serviceApi.getService(IZyncroApi.class).login(username, password);
		return result.get("stringResult");
	}
}
